<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Lock/Unlock User</title>
    <link rel="stylesheet" type="text/css" href="<c:url value="/CSS/user/lockOrUnlockUser.css"/>"/>
  </head>
  <body>
    <div class="container">
      <jsp:include page="/WEB-INF/JSP/head.jsp"/>
      <div class="body">
        <div class="lock-or-unlock-user">
          <form action="<c:url value="/user/lockOrUnlockUser"/>" method="post">
            <div class="title">Lock/Unlock User</div>
            <div class="red">${message}</div>
            <div class="group">
              <div class="label">User Name:</div>
              <div class="field">
                <select class="user-name" name="userName">
                  <c:forEach var="user" items="${userList}">
                    <option value="${user.userName}">${user.userName}</option>
                  </c:forEach>
                </select>
              </div>
            </div>
            <div class="group">
              <div class="label">Lock/Unlock:</div>
              <div class="field">
                <input type="radio" name="locked" value="1" checked="checked"/>Lock&nbsp;
                <input type="radio" name="locked" value="0"/>Unlock
              </div>
            </div>
            <div class="buttons">
              <input type="submit" value="Save"/>&nbsp;
              <input type="reset" value="Reset"/>
            </div>
          </form>
        </div>
      </div>
      <jsp:include page="/WEB-INF/JSP/foot.jsp"/>
    </div>
  </body>
</html>